package com.hdu.clj.fitness

import android.app.Activity
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.talk_title.view.*

class TalkTitleLayout(context: Context, attrs:AttributeSet):LinearLayout(context,attrs) {

    init {
        LayoutInflater.from(context).inflate(R.layout.talk_title,this)
        talkTitleBack.setOnClickListener {
            val activity = context as Activity
            activity.finish()
        }
        talkTitleText.setText("")
    }

}